<template>
  <h3>登录</h3>

  <el-button>按钮</el-button>

  <a @click="hanldeLogin">登录</a>

  <a @click="router.push('password')">找回密码</a>
  <a @click="router.push('register')">注册</a>
</template>

<script setup>
import { useRouter } from "vue-router";

const router = useRouter();

const hanldeLogin = () => {
  sessionStorage.setItem("isAuthorization", "1");
  router.push("/home");
};
</script>

<style lang="less" scoped>
a {
  color: dodgerblue;
  cursor: pointer;

  & + a {
    margin-left: 5px;
  }
}
</style>
